(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Scripts/Matchvs.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, 'c5bc5v+19pOb4TN6Pw+oLnv', 'Matchvs', __filename);
// Scripts/Matchvs.js

"use strict";

var engine;
var response = {};
var MsMatchInfo;
var MsCreateRoomInfo;
var MsRoomFilterEx;
var LocalStore_Clear;
try {
   console.log("load matchvs JSB  a ");
   engine = Matchvs.MatchvsEngine.getInstance();
   console.log("load matchvs JSB  a1 ");
   MsMatchInfo = Matchvs.MatchInfo;
   console.log("load matchvs JSB  a2 ");
   MsCreateRoomInfo = Matchvs.CreateRoomInfo;
   console.log("load matchvs JSB  a3 ");
   MsRoomFilterEx = Matchvs.RoomFilterEx;
   console.log("load matchvs JSB b ");
} catch (e) {
   console.warn("load matchvs JSB fail," + e.message);
   try {
      var jsMatchvs = require("matchvs.all");
      engine = new jsMatchvs.MatchvsEngine();
      response = new jsMatchvs.MatchvsResponse();
      MsMatchInfo = jsMatchvs.MsMatchInfo;
      MsCreateRoomInfo = jsMatchvs.MsCreateRoomInfo;
      MsRoomFilterEx = jsMatchvs.MsRoomFilterEx;
      LocalStore_Clear = jsMatchvs.LocalStore_Clear;
      console.log("load matchvs.all.js");
   } catch (e) {
      console.warn("load matchvs.all.js fail," + e.message);
      var MatchVSEngine = require('MatchvsEngine');
      console.log("load matchvs test code");
      engine = new MatchVSEngine();
   }
}
module.exports = {
   engine: engine,
   response: response,
   MsMatchInfo: MsMatchInfo,
   MsCreateRoomInfo: MsCreateRoomInfo,
   MsRoomFilterEx: MsRoomFilterEx,
   LocalStore_Clear: LocalStore_Clear
};

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=Matchvs.js.map
        